CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(BlueCloud)

SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/build/)

IF(UNIX)

## Compiler flags
if(CMAKE_COMPILER_IS_GNUCXX)
    set(CMAKE_CXX_FLAGS "-std=c++0x -pthread")       
endif()

ENDIF(UNIX)

IF(MSVC)
# Standard:          /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR
SET(CMAKE_CXX_FLAGS "/DWIN32 /D_WINDOWS /W4 /Zi /EHsc /GR- /MP ") 
ENDIF(MSVC)

SET(CMAKE_DEBUG_POSTFIX  "d")

# Needed packages

# Unicode rules!
ADD_DEFINITIONS(-D_UNICODE) # -DQT_NO_KEYWORDS -DBLUEETHER_EXPORT)

# BlueEther
file(GLOB BLUECOMPANY_BLUECLOUD_SOURCE src/*.*)	
					
# Create a target for the library
ADD_EXECUTABLE(BlueCloud ${BLUECOMPANY_BLUECLOUD_SOURCE}
					)
					
